/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spiele.tetromino.decorator;

import spiele.block.Block;
import spiele.tetromino.Tetromino;

/**
 *
 * @author martin
 */
public class Translation implements Tetromino{
  private final Tetromino _back;
  private final int _col,
                    _row;
  private Translation(final Tetromino back, int col, int row){
    _back=back;
    _col=col;
    _row=row;
  }
  
  @Override
  public Block getAt(int col, int row) {
    return _back.getAt(col+_col, row+_row);
  }

  @Override
  public int width() {
    return _back.width();
  }

  @Override
  public int heigth() {
    return _back.heigth();
  }
  
}
